package com.shuang.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @DATE: 2021/09/26 19:57
 * @Author: 小爽帅到拖网速
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {
  @Override
  public void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(new CheckHandlerInterceptor())
            .addPathPatterns("/checkin/**");  //所有请求都被拦截包括静态资源
  }

}

